package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 信息发布对象 message
 * 
 * @author ruoyi
 * @date 2023-03-03
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 信息id */
    private Long messageId;

    /** 发布名称 */
    @Excel(name = "发布名称")
    private String messageName;

    /** 信息类型id */
    private String messageTypeId;

    @Excel(name = "信息类型")
    private  String dictLabel;
    /** 信息内容 */
    @Excel(name = "信息内容")
    private String messageContent;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date addTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;
    /** 创建者 */
    private Long userId;
    @Excel(name = "创建者")
    private String nickName;

    /** 审批（0，1） */
    @Excel(name = "审批", readConverterExp = "0=未审批,1=已审批")
    private Long approval;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 删除状态 */
    private Long fakeDelete;

    public void setMessageId(Long messageId) 
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }
    public void setMessageName(String messageName) 
    {
        this.messageName = messageName;
    }

    public String getMessageName() 
    {
        return messageName;
    }

    public String getMessageTypeId() {
        return messageTypeId;
    }

    public void setMessageTypeId(String messageTypeId) {
        this.messageTypeId = messageTypeId;
    }

    public String getDictLabel() {
        return dictLabel;
    }

    public void setDictLabel(String dictLabel) {
        this.dictLabel = dictLabel;
    }

    public void setMessageContent(String messageContent)
    {
        this.messageContent = messageContent;
    }

    public String getMessageContent() 
    {
        return messageContent;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setApproval(Long approval) 
    {
        this.approval = approval;
    }

    public Long getApproval() 
    {
        return approval;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setFakeDelete(Long fakeDelete) 
    {
        this.fakeDelete = fakeDelete;
    }

    public Long getFakeDelete() 
    {
        return fakeDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("messageName", getMessageName())
            .append("messageTypeId", getMessageTypeId())
            .append("messageContent", getMessageContent())
            .append("addTime", getAddTime())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("nickName", getNickName())
            .append("approval", getApproval())
            .append("memo", getMemo())
            .append("fakeDelete", getFakeDelete())
            .toString();
    }
}
